package com.z.blog.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.z.base.vo.PageVo;
import com.z.blog.entity.User;

/**
 * 用户Service接口
 *
 * @author z
 * @date 2022-09-02
 */
public interface IUserService extends IService<User> {

    /**
     * 查询用户
     * @param user 用户
     * @param pageVo
     * @return 用户 分页集合
     * */
    PageInfo<User> selectUserPage(User user, PageVo pageVo);

    /**
     * 登录接口
     * @param username
     * @param password
     */
    User login(String username, String password);
}
